﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TCKQKL.FrontEnd.DataModel
{
    public sealed class MarketSummaryDataUI
    {
        private string _marketName;
        private decimal _index;
        private decimal _changed;
        private decimal _totalTrade;
        private decimal _totalShare;
        private decimal _totalValue;
        private List<QuoteDataUI> _topGainers;
        private List<QuoteDataUI> _topLosers;
        private List<QuoteDataUI> _topActives;
        private List<QuoteDataUI> _topForeignBuy;
        private List<QuoteDataUI> _topForeignSell;
        private List<QuoteDataUI> _topNegotiatedTrade;
        private DateTime _summaryDate;
        private string _marketStat;

        public MarketSummaryDataUI()
        {
        }

        public MarketSummaryDataUI(string marketName, decimal index, decimal changed, decimal totalTrade, decimal totalShare, decimal totalValue, List<QuoteDataUI> topGainers, List<QuoteDataUI> topLosers, List<QuoteDataUI> topActives, List<QuoteDataUI> topForeignBuy, List<QuoteDataUI> topForeignSell, List<QuoteDataUI> topNegotiatedTrade, DateTime summaryDate, string marketStat)
        {
            this._marketName = marketName;
            this._index = index;
            this._changed = changed;
            this._totalTrade = totalTrade;
            this._totalShare = totalShare;
            this._totalValue = totalValue;
            this._topGainers = topGainers;
            this._topLosers = topLosers;
            this._topActives = topActives;
            this._topForeignBuy = topForeignBuy;
            this._topForeignSell = topForeignSell;
            this._topNegotiatedTrade = topNegotiatedTrade;
            this._summaryDate = DateTime.Now;
            this._marketStat = marketStat;
        }

        public string marketName
        {
            get
            {
                return _marketName;
            }

            set
            {
                this._marketName = value;
            }

        }
        public decimal index
        {
            get
            {
                return _index;
            }
            set { _index = value; }
        }
        public decimal Changed
        {
            get { return _changed; }
            set { _changed = value; }
        }

        public decimal totalTrade
        {
            get
            {
                return _totalTrade;
            }
            set { _totalTrade = value; }
        }
        public decimal totalShare
        {
            get
            {
                return _totalShare;
            }
            set { _totalShare = value; }
        }
        public decimal totalValue
        {
            get
            {
                return _totalValue;
            }
            set { _totalValue = value; }
        }
        public List<QuoteDataUI> topGainers
        {
            get
            {
                return _topGainers;
            }

            set
            {
                this._topGainers = value;
            }

        }
        public List<QuoteDataUI> topLosers
        {
            get
            {
                return _topLosers;
            }

            set
            {
                this._topLosers = value;
            }

        }
        public List<QuoteDataUI> topActives
        {
            get
            {
                return _topActives;
            }

            set
            {
                this._topActives = value;
            }

        }
        public List<QuoteDataUI> topForeignBuy
        {
            get
            {
                return _topForeignBuy;
            }

            set
            {
                this._topForeignBuy = value;
            }

        }
        public List<QuoteDataUI> topForeignSell
        {
            get
            {
                return _topForeignSell;
            }

            set
            {
                this._topForeignSell = value;
            }

        }
        public List<QuoteDataUI> topNegotiatedTrade
        {
            get
            {
                return _topNegotiatedTrade;
            }

            set
            {
                this._topNegotiatedTrade = value;
            }

        }
        public DateTime summaryDate
        {
            get
            {
                return _summaryDate;
            }

            set
            {
                this._summaryDate = value;
            }
        }
        public string MarketStat
        {
            get { return _marketStat; }
            set { _marketStat = value; }
        }

    }
}